tests: Fix for new tranfer behavior of constructors
authorBenjamin Otte <otte@redhat.com>
Sun, 8 Nov 2020 14:42:11 +0000 (15:42 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Nov 2020 18:04:39 +0000 (19:04 +0100)
We were still unreffing a listmodel where the reference wasn't ours
anymore.

tests/testcolumnview.c

index 04f09f1ee54d2a9fef3835cb644e7d5613059a4b..79b1740cb88c19f3597b12430b5a013449bb1b18 100644 (file)
@@ -771,8 +771,6 @@ main (int argc, char *argv[])
   update_statusbar (GTK_STATUSBAR (statusbar));
   gtk_box_append (GTK_BOX (vbox), statusbar);
 
-  g_object_unref (filter);
-
   list = gtk_list_view_new (
              GTK_SELECTION_MODEL (gtk_single_selection_new (g_object_ref (gtk_column_view_get_columns (GTK_COLUMN_VIEW (view))))),
              gtk_builder_list_item_factory_new_from_bytes (scope, g_bytes_new_static (factory_ui, strlen (factory_ui))));